package day0910.demo2;

/**
 * @Author:galaxy_yan
 * @Date: 2022/9/10
 * @Time: 19:38
 * @Description
 */
public class Rect extends Shape {
    private double length;
    private double width;

    public Rect(double length, double width) {
        this.length = length;
        this.width = width;
    }

    @Override
    void draw() {
        System.out.println("▭");
    }

    @Override
    public void calcArea() {
        System.out.println(length*width);
    }
}

